import request from '@/utils/request'

// 工单搜索
export const getWorkOrder = (data) => request.get('/api/task-service/task/search', {
  params: {
    ...data
  }
})

// 工单状态列表
export const getWorkState = () => request.get('/api/task-service/task/allTaskStatus')

// 获取补货预警值
export const getSupplyAlertValue = () => request.get('/api/task-service/task/supplyAlertValue')

// 设置自动补货工单阈值
export const getAutoSupplyConfig = (alertValue) => request.get('/api/task-service/task/autoSupplyConfig', alertValue)
